using System;
using System.Linq;
using TestMonkey.Models;

namespace TestMonkey.Templates
{
    public class ListT : TemplateProcessor
    {
        protected override bool ShouldRun(ModelRoot model)
        {
            if (model == null)
                throw new ArgumentNullException("model", "model is null.");

            return model.Class.ListT.Where(t => t.IsCreatable).Count() > 0;
        }

    }
}